#include "outdraw.h"

class outDraw::inDraw {
public:
    inDraw() : m_area(0) {}
    void enlargeArea() { m_area += 10; }
    int getArea() const { return m_area; }
private:
    int m_area; // 面积
};


outDraw::outDraw():m_pimpl(std::make_shared<outDraw::inDraw>())
{

}

outDraw::~outDraw() = default;

void outDraw::doDraw()
{
    m_pimpl->enlargeArea();
    std::cout << "Area:" << m_pimpl->getArea() << std::endl;
}
